﻿#include <iostream>
#include "yanse.h"
#include"stdio.h"

typedef struct PacketHead {
    char version[4]; //协议版本号
    uint32_t cmdNo;
    uint32_t seqNo;
    uint32_t cmdLen;
}PACKET_HEAD;

using namespace std;

int main()
{
    yanse te_po(6666);
    char *aaa;
    PACKET_HEAD head;
    char buf[1024]="dsadsadsadsadsa";
    int size =sizeof(buf);
//    head.cmdNo = htonl(POST_NODE_REQ);
//    head.seqNo = htonl(1);
//    head.cmdLen = htonl(size);
    while(1)
    {
    te_po.udp_send("192.168.1.136",60000,buf);
    //te_po.recive();
    }


}

